package com.dudy.authdemo.mapper;

import com.dudy.authdemo.model.Menu;
import com.dudy.common.base.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper extends MyMapper<Menu> {
    /**
     * 根据用户id获取用户拥有的菜单权限
     * @param userName
     * @return
     */
    List<Menu> queryCurrentMenu(@Param("userName") String userName);

}